package com.xichen.pojo;

import tk.mybatis.mapper.annotation.NameStyle;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author tang wei
 * @version 1.0
 * @date 2020/7/16 17:07
 */
@Table(name = "SYS_MONTH")
@NameStyle()
public class DutyMonth {
    @Id
    private Long id;//排班月份表id
    private Date createTime;//创建时间
    private Date updateTime;//更新时间
    private String yearMonth;//月份
    private int dayNum;//本月需要值班的天数

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getYearMonth() {
        return yearMonth;
    }

    public void setYearMonth(String yearMonth) {
        this.yearMonth = yearMonth;
    }

    public int getDayNum() {
        return dayNum;
    }

    public void setDayNum(int dayNum) {
        this.dayNum = dayNum;
    }

    @Override
    public String toString() {
        return "DutyMonth{" +
                "id=" + id +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", yearMonth='" + yearMonth + '\'' +
                ", dayNum=" + dayNum +
                '}';
    }
}
